<?
$url = 'http://download.finance.yahoo.com/d/quotes.csv?s=^NDX,^FTSE,^AORD,^AXJO&f=nspc0c4&e=.csv';
$source = file_get_contents($url);
file_put_contents('../upload/a.csv', $source);

$urlA = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=AUDUSD=X,USDJPY=X';
$sourceA = file_get_contents($urlA);
file_put_contents('../upload/b.csv', $sourceA);
?>
